<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<html>
<head>

<link rel="stylesheet" href="${ctx}/static/css/Master.css">
<link rel="stylesheet" href="${ctx}/static/css/lq.datetimepick.css">
<script src="${ctx}/static/js/jquery-1.9.0.min.js"></script>
<script src="${ctx}/static/js/simpletooltip.min.js"></script>
<script src="${ctx}/static/js/selectUi.js"></script>
<script src="${ctx}/static/js/lq.datetimepick.js"></script>

<script>
$(document).ready(function(){
	//
	$("#datetimepicker_start").on("click",function(e){
		e.stopPropagation();
		$(this).lqdatetimepicker({
			css : 'datetime-day',
			dateType : 'D',
			selectback : function(){
			}
		});
	});
	//
	$("#datetimepicker_end").on("click",function(e){
		e.stopPropagation();
		$(this).lqdatetimepicker({
			css : 'datetime-day',
			dateType : 'D',
			selectback : function(){
			}
		});
	
	});
});

function find(){
	 var a = $("#form1");
	a.submit();
}
</script>
</head>



<body>

			<section class="boxRight">
				<div class="OrgTit">查看APP公告</div>
				<div class="context">
					<div class="add_firstmenu">
						<dl>
							<dt>
								标题
							</dt>
							<dd class="org">
								${advice.advTitle}
							</dd>
						</dl>
						<dl>
							<dt>
								内容
							</dt>
							<dd class="org">
								${advice.advDetails}
							</dd>
						</dl>
						<dl>
							<dt>
								时间
							</dt>
							<dd>
								<span class="org"><fmt:formatDate value="${advice.startDate}" pattern="yyyy-MM-dd"/></span>
								
							</dd>
						</dl>
						<dl>
							<dt>
								投放范围
							</dt>
							<dd class="org">
								<c:if test="${advice.setType==1}">
								<c:if test="${advice.setTypeDetail!=11}">
								
								<c:if test="${advice.setTypeDetail!=15}">
								  <c:forEach items="${advice.orgList}" var="org" varStatus="status">
	                	           ${org.orgName}
	                	         <c:if test="${!status.last}">,</c:if> 
	                	          </c:forEach>
	                	         </c:if>
	                	         
	                	         <c:if test="${advice.setTypeDetail==15}">  
	                	         <c:forEach items="${advice.communityList}" var="comm" varStatus="status">
	                	           ${comm.comName}
	                	         <c:if test="${!status.last}">,
	                	         </c:if> 
	                	          </c:forEach></c:if>
	                	         </c:if>
                	            <c:if test="${advice.setTypeDetail==11}">全机构</c:if>
								</c:if>
								
								<!-- 按地域投放 -->
								<c:if test="${advice.setType==2}">
								<c:if test="${advice.setTypeDetail!=21}">
								<c:forEach items="${advice.areaList}" var="are" varStatus="status">
	                	           <c:if test="${are.provinceName!=null}">${are.provinceName}</c:if>
	                	           <c:if test="${are.cityName!=null}">${are.cityName}</c:if>
	                	           <c:if test="${are.areaName!=null}">${are.areaName}</c:if>
	                	         <c:if test="${!status.last}">,</c:if> 
                	            </c:forEach>
                	            </c:if>
                	            <c:if test="${advice.setTypeDetail==21}">全国</c:if>
								</c:if>
							</dd>
						</dl>
						<dl>
							<dt>
								投放版本
							</dt>
							<dd class="org">
								${diy:keyToValue(advice.putInVersion,'SET_VERSION')}
							</dd>
						</dl>
						<dl>
							<dt>
								状态
							</dt>
							<dd class="org">
								${diy:keyToValue(advice.status,'STATUS')}
							</dd>
						</dl>
						<div class="combtn"><a href="javascript:void(0);" onclick="history.go(-1)">返回</a></div>
					</div>
				</div>
			
		</section>
</body>
</html>